package com.cn.study0011.Test0011;

import java.util.Scanner;

/**
 * @author lw
 * @ClassName TestCal.java
 * @Description
 * @createTime 2023年05月16日 23:12:00
 */
public class TestCal {
    public static void main(String[] args) {
        Calculator cal=new Calculator();
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入第一个数");
        int i=sc.nextInt();
        System.out.println("请输入第二个数");
        int j=sc.nextInt();
        System.out.println("i+j="+cal.add(i, j));
        System.out.println("i-j="+cal.reduce(i,j));
        System.out.println("i*j="+cal.mul(i,j));
        System.out.println("i/j="+cal.except(i,j));
    }
}
